import request from "@/utils/request";

/// <summary>
/// PC所有商品
/// </summary>
/// <returns></returns>
export const pc_sys_products = async (): Promise<any> => {
  return request({
    url: "/SysCarShops/pc_sys_products",
    method: "get",
  });
};

/**
 * 员工登录
 * @param obj
 * @returns
 */
export const employLogin = async (obj?: { account: string; password: string }): Promise<any> => {
  return request({
    url: "/Login/employLogin",
    method: "post",
    data: obj,
  });
};

/// <summary>
/// 获取当前员工账号信息
/// </summary>
/// <returns></returns>
export const Getemploy = async (): Promise<any> => {
  return request({
    url: "/Login/Getemploy",
    method: "get",
  });
};

/// <summary>
/// 获取所有员工账号信息
/// </summary>
/// <returns></returns>
export const Get_employ = async (): Promise<any> => {
  return request({
    url: "/Login/Get_employ",
    method: "get",
  });
};

/**
 * 产品-
 * @param obj
 * @returns
 */
export const pc_sys_productsrm = async (): Promise<any> => {
  return request({
    url: "/SysCarShops/pc_sys_productsrm",
    method: "get",
  });
};
